__author__ = 'alex'

def default():
    #Wauth
    #color
    pass



def auth(func):
    def wrapper(*args,**kwargs):
        user = raw_input("input passwd:").strip()
        if user == 'alex':
            print "---welcome login----"
            func(args,kwargs)
        else:
            print "---wrong passwd,access denied!---"
    return wrapper
@auth
def task(name,age=33):
    print "do something....",name


def task2():
    print "do something...2."
def task3():
    print "do something...3."

#task()

#task = auth(task,"runcmd") #wrapper(task)

#task("run cmd",33)  #wrapper("run cmd")

task2()